package com.jianbing.shasha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.shasha.mapper.ShashaQuesMusicMapper;
import com.jianbing.shasha.domain.ShashaQuesMusic;
import com.jianbing.shasha.service.IShashaQuesMusicService;

/**
 * shasha项目音乐相关Service业务层处理
 * 
 * @author zjw
 * @date 2024-06-20
 */
@Service
public class ShashaQuesMusicServiceImpl implements IShashaQuesMusicService 
{
    @Autowired
    private ShashaQuesMusicMapper shashaQuesMusicMapper;

    /**
     * 查询shasha项目音乐相关
     * 
     * @param id shasha项目音乐相关主键
     * @return shasha项目音乐相关
     */
    @Override
    public ShashaQuesMusic selectShashaQuesMusicById(Long id)
    {
        return shashaQuesMusicMapper.selectShashaQuesMusicById(id);
    }

    /**
     * 查询shasha项目音乐相关列表
     * 
     * @param shashaQuesMusic shasha项目音乐相关
     * @return shasha项目音乐相关
     */
    @Override
    public List<ShashaQuesMusic> selectShashaQuesMusicList(ShashaQuesMusic shashaQuesMusic)
    {
        return shashaQuesMusicMapper.selectShashaQuesMusicList(shashaQuesMusic);
    }

    /**
     * 新增shasha项目音乐相关
     * 
     * @param shashaQuesMusic shasha项目音乐相关
     * @return 结果
     */
    @Override
    public int insertShashaQuesMusic(ShashaQuesMusic shashaQuesMusic)
    {
        return shashaQuesMusicMapper.insertShashaQuesMusic(shashaQuesMusic);
    }

    /**
     * 修改shasha项目音乐相关
     * 
     * @param shashaQuesMusic shasha项目音乐相关
     * @return 结果
     */
    @Override
    public int updateShashaQuesMusic(ShashaQuesMusic shashaQuesMusic)
    {
        return shashaQuesMusicMapper.updateShashaQuesMusic(shashaQuesMusic);
    }

    /**
     * 批量删除shasha项目音乐相关
     * 
     * @param ids 需要删除的shasha项目音乐相关主键
     * @return 结果
     */
    @Override
    public int deleteShashaQuesMusicByIds(Long[] ids)
    {
        return shashaQuesMusicMapper.deleteShashaQuesMusicByIds(ids);
    }

    /**
     * 删除shasha项目音乐相关信息
     * 
     * @param id shasha项目音乐相关主键
     * @return 结果
     */
    @Override
    public int deleteShashaQuesMusicById(Long id)
    {
        return shashaQuesMusicMapper.deleteShashaQuesMusicById(id);
    }
}
